
package com.pmcc.core.entity.security;
import com.pmcc.core.entity.UUIDEntity;
import io.swagger.annotations.ApiModel;

import javax.persistence.*;
import java.util.Date;


/**
 * Created by tomas on 2018/4/9.
 */
@Entity
@Table(name = "sys_organization")
@ApiModel(value="组织管理", description = "organization")
public class Organization extends UUIDEntity{

    @Column(name = "code")
    private String code;//机构编号

    @Column(name = "c_name")
    private String cName;//机构中文名称

    @Column(name = "e_name")
    private String eName;//机构英文名称

    @Column(name = "org_no")
    private String orgNo;//机构号

    @Column(name = "short_name")
    private String shortName;//机构简称

    @Column(name = "description")
    private String description;//机构说明

    @Column(name = "parent_id")
    private String parentId;//上级机构ID

    @Column(name = "parent_code")
    private String parentCode;//上级机构编码

    @Column(name = "parent_name")
    private String parentName;//上级机构名字

    @Column(name = "level")
    private Integer level;//树形层级

    @Column(name = "org_level")
    private String orgLevel;//机构级别(省市县等)

    @Column(name = "sort_no")
    private Integer sortNo;//排序编号

    @Column(name = "status")
    private String status;//状态

    @Column(name = "system_code")
    private String systemCode;//系统编码

    @Column(name = "create_id")
    private String createId;//创建人

    @Column(name = "create_name")
    private String createName;//创建人名称

    @Column(name = "create_time")
    private Date createTime;//创建时间

    @Column(name = "create_unit_id")
    private String createUnitId;//创建人单位

    @Column(name = "create_unit_name")
    private String createUnitName;//创建人单位名称

    @Column(name = "remark")
    private String remark;//备注

    @Column(name = "del_flag")
    private Integer delFlag;//删除标记

    @Column(name = "org_type")
    private String orgType;//组织类型


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public String getOrgNo() {
        return orgNo;
    }

    public void setOrgNo(String orgNo) {
        this.orgNo = orgNo;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getOrgLevel() {
        return orgLevel;
    }

    public void setOrgLevel(String orgLevel) {
        this.orgLevel = orgLevel;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSystemCode() {
        return systemCode;
    }

    public void setSystemCode(String systemCode) {
        this.systemCode = systemCode;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUnitId() {
        return createUnitId;
    }

    public void setCreateUnitId(String createUnitId) {
        this.createUnitId = createUnitId;
    }

    public String getCreateUnitName() {
        return createUnitName;
    }

    public void setCreateUnitName(String createUnitName) {
        this.createUnitName = createUnitName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
}
